wayland: Add primary clipboard subclass
authorBenjamin Otte <otte@redhat.com>
Sun, 3 Dec 2017 04:39:08 +0000 (05:39 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 3 Dec 2017 04:46:49 +0000 (05:46 +0100)
commitff577e6c2cc3cacfb7e3d504bafffa20ae45733b
tree024e6d2edcfae4586d53c8aca919e0152dc81f22
parentef69daacdfc0a73cb1b1716f13f0914ec045a250
wayland: Add primary clipboard subclass

I decided to put this in a custom subclass, because then I could keep
the whole gtk primary protocol self-contained.

The other option would have been reusing GdkWaylandClipboard, but that
didn't seem worth it, especially because that code needs to interact
with the DND machinery, while the primary doesn't.
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdkprimary-wayland.c [new file with mode: 0644]
gdk/wayland/gdkprimary-wayland.h [new file with mode: 0644]
gdk/wayland/gdkprivate-wayland.h
gdk/wayland/gdkselection-wayland.c
gdk/wayland/meson.build